package com.net.action.sell;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import com.googlecode.jsonplugin.annotations.JSON;
import com.net.model.Commodity;
import com.net.model.Customer;
import com.net.model.SellDetail;
import com.net.model.SellMain;
import com.net.service.sell.SellService;
import com.opensymphony.xwork2.ActionSupport;

@Component("sellMainAction")
@Scope("prototype")
public class SellMainAction extends ActionSupport{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private SellMain sellMain;
	private SellDetail sellDetail;
	private Commodity commodity;
	private Customer customer;
	private SellService sellService;
	
	/** 以上为全局变量的声明 **/
	
	
	
	/** 以下是变量的get/set 方法 **/
	public SellMain getSellMain() {
		return sellMain;
	}
	public void setSellMain(SellMain sellMain) {
		this.sellMain = sellMain;
	}
	public SellDetail getSellDetail() {
		return sellDetail;
	}
	public void setSellDetail(SellDetail sellDetail) {
		this.sellDetail = sellDetail;
	}
	public Commodity getCommodity() {
		return commodity;
	}
	public void setCommodity(Commodity commodity) {
		this.commodity = commodity;
	}
	public Customer getCustomer() {
		return customer;
	}
	public void setCustomer(Customer customer) {
		this.customer = customer;
	}
	@JSON(serialize=false)
	public SellService getSellService() {
		return sellService;
	}
	@Resource(name="sellService")
	public void setSellService(SellService sellService) {
		this.sellService = sellService;
	}
}
